package com.cnswhy.cloud.server.system.feign;

import com.cnswhy.cloud.common.core.base.R;
import com.cnswhy.cloud.common.core.entity.constant.CnswhyServerConstant;
import com.cnswhy.cloud.server.system.entity.SystemUser;
import com.cnswhy.cloud.server.system.feign.hystrix.SystemUserApiFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/*@FeignClient(name = "${zuihou.feign.authority-server:zuihou-authority-server}", fallback = SystemUserApiFallback.class
        , path = "/systemUser", qualifier = "systemUserApi")*/
@FeignClient(value = CnswhyServerConstant.CNSWHY_SERVER_SYSTEM, fallback = SystemUserApiFallback.class
        , path = "/systemUser", qualifier = "systemUserApi")
public interface SystemUserApi {
    @RequestMapping(value = "/", method = RequestMethod.POST)
    R<List<Long>> save(@RequestBody SystemUser systemUser);
}
